/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.is.city.webcam;

import java.awt.Dimension;
import java.awt.HeadlessException;
import java.net.URL;
import javax.swing.JFrame;

/**
 *
 * @author oleg
 */
public class WebCamFrame extends JFrame{

    public WebCamFrame(URL hostURL, int defFPS, int width, int height) throws HeadlessException {
        ImageCanvas ic = new ImageCanvas(null,hostURL.getHost(),hostURL.getPort(),defFPS,width,height);
        add(ic);
        setMinimumSize(new Dimension(width, height));
    }
    
}
